package com.study.service.impl;

import com.study.mapper.EmpLogMapper;
import com.study.pojo.EmpLog;
import com.study.service.EmpLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class EmpLogServiceImlp implements EmpLogService {
    @Autowired
    private EmpLogMapper empLogMapper;
    @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRES_NEW)
    @Override
    public void insertLog(EmpLog empLog) {
        empLogMapper.insert(empLog);

    }
}
